package apps.kine.android.traxxsalon;

import android.app.Activity;
import android.content.pm.PackageInfo;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;

public class AboutActivity extends Activity {
	private static final String TAG = "AboutActivity";

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.about);

		String versionName = "";

		try {
			PackageInfo pinfo = getPackageManager().getPackageInfo(
					getPackageName(), 0);
			versionName = pinfo.versionName;
		} catch (Exception e) {
			// Nothing to do really!
		}

		TextView version = (TextView) findViewById(R.id.versionLabel);
		version.setText(new StringBuilder()
				.append(getResources().getString(R.string.version)).append(" ")
				.append(versionName));
	}
}
